Skip to content
Source
Sign inSign up
TanStack/schemas
Open History to see the last commit

llms[.]txt.ts

14 lines333 Bytes

1import { createFileRoute } from '@tanstack/react-router'
2​
3import { llmsTxt } from '#/server/llms-txt.ts'
4​
5export const Route = createFileRoute('/llms.txt')({
6 server: {
7 handlers: {
8 GET: () =>
9 new Response(llmsTxt, {
10 headers: { 'Content-Type': 'text/markdown; charset=utf-8' },
11 }),
12 },
13 },
14})